<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>宠物系统</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="allpage.css" >
	</head>
	<style type="text/css">
	.menuList{
		border-right-width: 1px;
		border-right-style: double;
	}
	</style>
	<script defer type="text/javascript">
	/* window.onload = function(){
		var linkgroup = document.getElementById("linkgroup");
		var alinks = linkgroup.getElementsByTagName('a');
		var targetSrc = document.getElementById('contentFrame').src;
		for(var i = 0;i < alinks.length ;i++){
			alinks[i].onclick = function(){
				targetSrc = alinks[i].href;
				return false;
			};
		}
	};  */
	</script>
	<body>
		<div class="background">
			<jsp:include page="suc.jsp"></jsp:include>
			<div class="contentDiv">
				<table width="100%" height="535px" border="0" align="center">
					<tr>
						<td width="20%" align="left" valign="top" id="linkgroup" class="menuList">
							<ul>
								<li>
									兽医管理
									<ul>
										<li>
											<a href="servlet/DoctorServlet?type=list" onclick="document.getElementById('contentFrame').src=this.href;return false;">兽医信息管理</a>
										</li>
										<li>
											<a href="servlet/SpecServlet?type=list" onclick="document.getElementById('contentFrame').src=this.href;return false;">兽医特长管理</a>
										</li>
										<li>
											<a href="servlet/VetUpdate?type=toAdd" onclick="document.getElementById('contentFrame').src=this.href;return false;">添加兽医</a>
										</li>
									</ul>
								</li>
								<li>
									宠物管理
									<ul>
										<li>
											<a href="servlet/PetTypeServlet?type=list" onclick="document.getElementById('contentFrame').src=this.href;return false;">宠物类别管理</a>
										</li>
										<!-- <li>
											<a href="user/manage/" onclick="document.getElementById('contentFrame').src=this.href;return false;">添加宠物类别</a>
										</li> -->
									</ul>
								</li>
								<li>
									系统管理
									<ul>
										<li>
											<a href="user/manage/addUser.jsp" onclick="document.getElementById('contentFrame').src=this.href;return false;">添加账户</a>
										</li>
										<li>
											<a href="user/manage/editUser.jsp" onclick="document.getElementById('contentFrame').src=this.href;return false;">修改密码</a>
										</li>
									</ul>
								</li>
							</ul>
						</td>
						<td align="center" id="contentTarget" valign="top" height="100%">
							<iframe  name="contentFrame" id="contentFrame" width="90%" height="300" frameborder="0"> </iframe>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</body>
</html>
